package com.repair.miniApp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.repair.common.annotation.Excel;
import com.repair.common.core.domain.BaseEntity;

/**
 * 维修订单对象 repair_order
 *
 * @author repair
 * @date 2024-12-10
 */
public class RepairOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维修订单id */
    private Long id;

    /** 发布人id */
    @JsonProperty("user_id")
    private Long userId;

    /** 发布人openid */

    private String openid;

    /** 发布人微信基本信息 */
    @JsonProperty("user_info")
    private String userInfo;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 楼栋号 */
    @Excel(name = "楼栋号")
    @JsonProperty("building_number")
    private String buildingNumber;

    /** 门牌号 */
    @Excel(name = "门牌号")
    @JsonProperty("house_number")
    private String houseNumber;

    /** 预约上门时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "预约上门时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    @JsonProperty("visit_time")
    private Date visitTime;

    /** 故障类型 */
    @Excel(name = "故障类型")
    @JsonProperty("repair_type")
    private String repairType;

    /** 故障图片 */
    @Excel(name = "故障图片")
    @JsonProperty("repair_img")
    private String repairImg;

    /** 故障描述 */
    @Excel(name = "故障描述")
    @JsonProperty("fault_desc")
    private String repairDesc;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 分配工作人员id */
    private Long workerUserId;

    /** 分配工作人员姓名 */
    @Excel(name = "分配工作人员姓名")
    private String workerName;

    /** 开始处理消息 */
    @JsonProperty("start_info")
    @Excel(name = "开始处理消息")
    private String startInfo;

    /** 开始处理图片 */
    @JsonProperty("start_img")
    @Excel(name = "开始处理图片")
    private String startImg;

    /** 处理完成消息 */
    @JsonProperty("finish_info")
    @Excel(name = "处理完成消息")
    private String finishInfo;

    /** 处理完成图片 */
    @JsonProperty("finish_img")
    @Excel(name = "处理完成图片")
    private String finishImg;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOpenid(String openid)
    {
        this.openid = openid;
    }

    public String getOpenid()
    {
        return openid;
    }
    public void setUserInfo(String userInfo)
    {
        this.userInfo = userInfo;
    }

    public String getUserInfo()
    {
        return userInfo;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setBuildingNumber(String buildingNumber)
    {
        this.buildingNumber = buildingNumber;
    }

    public String getBuildingNumber()
    {
        return buildingNumber;
    }
    public void setHouseNumber(String houseNumber)
    {
        this.houseNumber = houseNumber;
    }

    public String getHouseNumber()
    {
        return houseNumber;
    }
    public void setVisitTime(Date visitTime)
    {
        this.visitTime = visitTime;
    }

    public Date getVisitTime()
    {
        return visitTime;
    }
    public void setRepairType(String repairType)
    {
        this.repairType = repairType;
    }

    public String getRepairType()
    {
        return repairType;
    }
    public void setRepairImg(String repairImg)
    {
        this.repairImg = repairImg;
    }

    public String getRepairImg()
    {
        return repairImg;
    }
    public void setRepairDesc(String repairDesc)
    {
        this.repairDesc = repairDesc;
    }

    public String getRepairDesc()
    {
        return repairDesc;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setWorkerUserId(Long workerUserId)
    {
        this.workerUserId = workerUserId;
    }

    public Long getWorkerUserId()
    {
        return workerUserId;
    }
    public void setWorkerName(String workerName)
    {
        this.workerName = workerName;
    }

    public String getWorkerName()
    {
        return workerName;
    }
    public void setStartInfo(String startInfo)
    {
        this.startInfo = startInfo;
    }

    public String getStartInfo()
    {
        return startInfo;
    }
    public void setStartImg(String startImg)
    {
        this.startImg = startImg;
    }

    public String getStartImg()
    {
        return startImg;
    }
    public void setFinishInfo(String finishInfo)
    {
        this.finishInfo = finishInfo;
    }

    public String getFinishInfo()
    {
        return finishInfo;
    }
    public void setFinishImg(String finishImg)
    {
        this.finishImg = finishImg;
    }

    public String getFinishImg()
    {
        return finishImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("openid", getOpenid())
                .append("userInfo", getUserInfo())
                .append("name", getName())
                .append("phone", getPhone())
                .append("buildingNumber", getBuildingNumber())
                .append("houseNumber", getHouseNumber())
                .append("visitTime", getVisitTime())
                .append("repairType", getRepairType())
                .append("repairImg", getRepairImg())
                .append("repairDesc", getRepairDesc())
                .append("status", getStatus())
                .append("workerUserId", getWorkerUserId())
                .append("workerName", getWorkerName())
                .append("createTime", getCreateTime())
                .append("startInfo", getStartInfo())
                .append("startImg", getStartImg())
                .append("finishInfo", getFinishInfo())
                .append("finishImg", getFinishImg())
                .toString();
    }
}
